﻿<Window x:Class="GetSMART.DriveWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Get S.M.A.R.T. Data" Height="400" Width="900" WindowStartupLocation="CenterOwner" ShowInTaskbar="False"
        Background="{x:Static SystemColors.ControlBrush}" Loaded="Window_Loaded">
    <DockPanel Margin="6">
        <DockPanel DockPanel.Dock="Top" Margin="0,0,0,6">
            <ListView Name="DrivesList" DockPanel.Dock="Left" Background="{x:Static SystemColors.ControlBrush}" >
                <ListView.View>
                    <GridView>
                        <GridViewColumn Width="134" Header="Name" DisplayMemberBinding="{Binding Name}"/>
                        <GridViewColumn Width="70" Header="HasRights" DisplayMemberBinding="{Binding HasRights}"/>
                        <GridViewColumn Width="70" Header="BusType" DisplayMemberBinding="{Binding BusType}"/>
                        <GridViewColumn Width="70" Header="Index" DisplayMemberBinding="{Binding Index}"/>
                        <GridViewColumn Width="70" Header="Scsi Port" DisplayMemberBinding="{Binding ScsiAddress.PortNumber}"/>
                        <GridViewColumn Width="70" Header="Scsi Path" DisplayMemberBinding="{Binding ScsiAddress.PathId}"/>
                        <GridViewColumn Width="70" Header="Scsi Target" DisplayMemberBinding="{Binding ScsiAddress.TargetId}"/>
                        <GridViewColumn Width="70" Header="Scsi Lun" DisplayMemberBinding="{Binding ScsiAddress.Lun}"/>
                    </GridView>
                </ListView.View>
                <ListView.ItemContainerStyle>
                    <Style TargetType="{x:Type ListViewItem}">
                        <Setter Property="HorizontalContentAlignment" Value="Center"/>
                    </Style>
                </ListView.ItemContainerStyle>
            </ListView>
            <Button Width="80" Height="24" Click="UpdateButton_Click">Update</Button>
        </DockPanel>
        <ListView Name="DataList">
            <ListView.View>
                <GridView>
                    <GridViewColumn Width="134" Header="Method" DisplayMemberBinding="{Binding Method}"/>
                    <GridViewColumn Width="70" Header="Index" DisplayMemberBinding="{Binding Index}"/>
                    <GridViewColumn Width="70" Header="IdentifyOK" DisplayMemberBinding="{Binding IdentifyOK}"/>
                    <GridViewColumn Width="70" Header="Serial" DisplayMemberBinding="{Binding Serial}"/>
                    <GridViewColumn Width="140" Header="Model" DisplayMemberBinding="{Binding Model}"/>
                    <GridViewColumn Width="70" Header="EnableOK" DisplayMemberBinding="{Binding EnableOK}"/>
                    <GridViewColumn Width="70" Header="AttrOK" DisplayMemberBinding="{Binding AttrOK}"/>
                    <GridViewColumn Width="70" Header="Temp" DisplayMemberBinding="{Binding Temperature}"/>
                    <GridViewColumn Width="70" Header="ThresOK" DisplayMemberBinding="{Binding ThresOK}"/>
                    <GridViewColumn Width="70" Header="TempThres" DisplayMemberBinding="{Binding TempThres}"/>
                </GridView>
            </ListView.View>
            <ListView.ItemContainerStyle>
                <Style TargetType="{x:Type ListViewItem}">
                    <Setter Property="HorizontalContentAlignment" Value="Center"/>
                </Style>
            </ListView.ItemContainerStyle>
        </ListView>
    </DockPanel>
</Window>
